home *** CD-ROM | disk | FTP | other *** search
/ Comix Games / Comix Games.iso / jetsons / jetsons.exe / jetsons.dxr / 00051.ls < prev    next >
Encoding:
Text File  |  1996-11-19  |  3.6 KB  |  65 lines

  1. on CheckForDropOFf
  2.   global theFirstShipChannel, theFirstBuildingChannel, theLastBuildingChannel, theFirstPodChannel, theSecondPodChannel, theThirdPodChannel, theFourthPodChannel, theFirstHeadChannel, theLastHeadChannel
  3.   repeat with h = theFirstBuildingChannel to theLastBuildingChannel
  4.     if the memberNum of sprite h = the number of member "Drop Off 1" then
  5.       if (the locH of sprite theFirstShipChannel > the left of sprite h) and (the locH of sprite theFirstShipChannel < the right of sprite h) then
  6.         set the regPoint of member "family 1" to point(-200, -200)
  7.         set the regPoint of member "Left family 1" to point(-200, -200)
  8.         if the visible of sprite theFirstPodChannel <> 1 then
  9.           puppetSound(1, "elroy")
  10.           set the visible of sprite theFirstHeadChannel to 0
  11.           set the locH of sprite theFirstPodChannel to the locH of sprite theFirstShipChannel
  12.           set the locV of sprite theFirstPodChannel to the locV of sprite theFirstShipChannel
  13.           set the visible of sprite theFirstPodChannel to 1
  14.         end if
  15.       end if
  16.       return 
  17.       next repeat
  18.     end if
  19.     if the memberNum of sprite h = the number of member "Drop Off 2" then
  20.       if (the locH of sprite theFirstShipChannel > the left of sprite h) and (the locH of sprite theFirstShipChannel < the right of sprite h) then
  21.         set the regPoint of member "family 2" to point(-200, -200)
  22.         set the regPoint of member "Left family 2" to point(-200, -200)
  23.         if the visible of sprite theSecondPodChannel <> 1 then
  24.           puppetSound(1, "judy")
  25.           set the visible of sprite (theFirstHeadChannel + 1) to 0
  26.           set the locH of sprite theSecondPodChannel to the locH of sprite theFirstShipChannel
  27.           set the locV of sprite theSecondPodChannel to the locV of sprite theFirstShipChannel
  28.           set the visible of sprite theSecondPodChannel to 1
  29.         end if
  30.       end if
  31.       return 
  32.       next repeat
  33.     end if
  34.     if the memberNum of sprite h = the number of member "Drop Off 3" then
  35.       if (the locH of sprite theFirstShipChannel > the left of sprite h) and (the locH of sprite theFirstShipChannel < the right of sprite h) then
  36.         set the regPoint of member "family 3" to point(-200, -200)
  37.         set the regPoint of member "Left family 3" to point(-200, -200)
  38.         if the visible of sprite theThirdPodChannel <> 1 then
  39.           puppetSound(1, "jane")
  40.           set the visible of sprite (theFirstHeadChannel + 2) to 0
  41.           set the locH of sprite theThirdPodChannel to the locH of sprite theFirstShipChannel
  42.           set the locV of sprite theThirdPodChannel to the locV of sprite theFirstShipChannel
  43.           set the visible of sprite theThirdPodChannel to 1
  44.         end if
  45.       end if
  46.       return 
  47.       next repeat
  48.     end if
  49.     if the memberNum of sprite h = the number of member "Drop Off 4" then
  50.       if (the locH of sprite theFirstShipChannel > the left of sprite h) and (the locH of sprite theFirstShipChannel < the right of sprite h) then
  51.         set the regPoint of member "family 4" to point(-200, -200)
  52.         set the regPoint of member "Left family 4" to point(-200, -200)
  53.         if the visible of sprite theFourthPodChannel <> 1 then
  54.           puppetSound(1, "astro1")
  55.           set the visible of sprite (theFirstHeadChannel + 3) to 0
  56.           set the locH of sprite theFourthPodChannel to the locH of sprite theFirstShipChannel
  57.           set the locV of sprite theFourthPodChannel to the locV of sprite theFirstShipChannel
  58.           set the visible of sprite theFourthPodChannel to 1
  59.         end if
  60.       end if
  61.       return 
  62.     end if
  63.   end repeat
  64. end
  65.